/*
@author: tian-yan-tian-ge
@file: 2023.11.22数字反转.go
@time: 2023/11/22 18:44
*/
package main

import "fmt"


func main() {
	var num int
	var renum int
	fmt.Print("请输入任意数字:")
	fmt.Scan(&num)
	for num > 10 {
		num1 := num % 10
		renum = renum*10 + num1
		num /= 10
	}
	renum = renum*10 + num
	fmt.Println(renum)

}